package controller

import (
	"github.com/gin-gonic/gin"
	api "ruoyi-go/app/admin/services"
	"ruoyi-go/utils/jwt"
)

func InitInRecords(e *gin.Engine) {
	// 路由权限相关
	v2 := e.Group("business")
	{
		auth := v2.Group("")
		auth.Use(jwt.JWTAuthMiddleware())
		{
			// 查询
			auth.POST("/inRecords/page", api.InRecordsPage)
			// 添加
			auth.POST("/inRecords/save", api.InRecordsSave)
			// 修改
			//auth.POST("/alarmInfo/update", api.AlarmInfoUpdate)
			// 删除
			auth.DELETE("/inRecords/:ids", api.InRecordsDelete)
			// 获取详情
			auth.GET("/inRecords/:id", api.GetInRecordsById)
		}
	}
}
